'+n+"
"+t.translator.get("retry")+" "),e.$("#errorMsg button").on("click",function(){t.send()})}),e.pubsub.on("ajaxForm:showForm",function(){e.$("#"+t.elm.attr("id")+" fieldset p").remove(),t.fields.each(function(t,o){e.$(o).val(""),n(o)}),t.elm.removeClass("successful-submit").removeClass("error"),e.$("#successMsg, #errorMsg").remove()}),e.pubsub.on("ajaxForm:stopWait",function(){t.elm.removeClass("wait"),e.$(".spin",t.elm).remove()}),e.pubsub.on("ajaxForm:renderWait",function(){t.elm.addClass("wait"),e.$("fieldset",t.elm).removeClass("invalid"),e.$("#successMsg, #errorMsg").remove(),t.elm.append('
')}),this},send:function(){var t=[];this.fields.each(function(n,o){var i=e.$(o);t.push(i.attr("name")+"="+i.val())}),e.pubsub.emit("ajaxForm:submit",[t.join("&"),this.url])}},n}),define("module/featureDetector",["config"],function(e){function t(e){var t=/forceTouchSupport=(on|off)/.exec(window.location.search);return!(!t||!t[1])&&t[1]===e}function n(e,t){return o.hasOwnProperty(t)||(o[t]=l[e+t]?l[e+t]():void 0),o[t]}var o={},i=/OS ([0-9])/,s=document.documentElement,a="modernizr",r=document.createElement(a),c=r.style,l={isIos:function(){return/(iPod|iPad|iPhone)/.test(navigator.userAgent)},isIosVersion:function(e){var t=i.exec(navigator.userAgent);return!(!t||!t[1])&&Number(t[1])>=e},isIos4:function(){return this.isIosVersion(4)},isAndroid:function(){return/Android/i.test(navigator.userAgent)},isAndroidMobile2:function(){return this.isAndroid()&&/Mobile/i.test(navigator.userAgent)&&/Android 2./.test(navigator.userAgent)},isAndroidMobile22:function(){return this.isAndroid()&&/Mobile/i.test(navigator.userAgent)&&/2.2/.test(navigator.userAgent)},isIE10:function(){return/MSIE 10/.test(navigator.userAgent)},isWindowsPhone:function(){return/Windows Phone/.test(navigator.userAgent)},isChrome:function(){return/Chrome/.test(navigator.userAgent)},canUseHistoryApi:function(){return window.history&&window.history.pushState},isContinuousPlayEnabled:function(){return!!document.getElementById("gnlContinuousPlayEnabled")||!!document.getElementById("continuous-play-enabled")},isShowingDesktopAds:function(){return!!document.getElementById("advert-post-script-load")},isOrbFig:function(){return"undefined"!=typeof orb&&"function"==typeof orb.fig},isCollectingGNLAnalytics:function(){return!!document.getElementById("gnlAnalyticsEnabled")},isDisplayingGnlAds:function(){return!!document.getElementById("gnlAdsEnabled")},isFromUK:function(){var e=void 0!==orb.fig.geo&&"function"==typeof orb.fig.geo.isUK;return this.isOrbFig()&&e?orb.fig.geo.isUK():void 0},canPlayProgressiveDownload:function(){return!("topcat"!==e.configuration.cms||this.isDesktop()||!0===e.asset.isLiveAvStream||this.isIos()&&"audio"!==e.asset.mediaType)},_contains:function(e,t){return!!~(""+e).indexOf(t)},_injectElementWithStyles:function(e,t,n,o){var i,r,c,l,u=document.createElement("div"),d=document.body,h=d||document.createElement("body");if(parseInt(n,10))for(;n--;)c=document.createElement("div"),c.id=o?o[n]:a+(n+1),u.appendChild(c);return i=["",'"].join(""),u.id=a,(d?u:h).innerHTML+=i,h.appendChild(u),d||(h.style.background="",h.style.overflow="hidden",l=s.style.overflow,s.style.overflow="hidden",s.appendChild(h)),r=t(u,e),d?u.parentNode.removeChild(u):(h.parentNode.removeChild(h),s.style.overflow=l),!!r},_testProps:function(e,t){for(var n in e){var o=e[n];if(!this._contains(o,"-")&&void 0!==c[o])return"pfx"!==t||o}return!1},_testPropsAll:function(e,t,n){var o="Webkit Moz O ms",i=o.split(" "),s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+i.join(s+" ")+s).split(" ");return this._testProps(a,t)},canCssColumn:function(){return!!this._testPropsAll("columnCount")},canCssTransition:function(){return!!this._testPropsAll("transition")},whichTransitionEnd:function(){var e=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(void 0!==e.style[n])return t[n]},canCssTransform:function(){return!!this._testPropsAll("transform")},canCssPreserve3d:function(){if(!this.canCssTransform())return!1;var e=!!this._testPropsAll("transformStyle");return e&&this._injectElementWithStyles("#modernizr { transform-style: preserve-3d; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; }",function(t,n){if(!window.getComputedStyle)return!1;var o=window.getComputedStyle(t),i="preserve-3d"===o.getPropertyValue("-webkit-transform-style"),s="preserve-3d"===o.getPropertyValue("-moz-transform-style"),a="preserve-3d"===o.getPropertyValue("-o-transform-style"),r="preserve-3d"===o.getPropertyValue("transform-style");e=r||a||s||i}),e},canCssTransform3d:function(){var e=!!this._testPropsAll("perspective");return e&&"webkitPerspective"in s.style&&this._injectElementWithStyles("@media (transform-3d), (-webkit-transform-3d) { #modernizr{ left: 9px; position: absolute; height: 3px; }}",function(t,n){e=9===t.offsetLeft&&3===t.offsetHeight}),e},canTouchEvents:function(){return"ontouchstart"in window},canSVG:function(){return!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect},isDesktop:function(){return this.isLargeScreen()&&!this.isTouchDevice()},isTouchDevice:function(){return!t("off")&&!!(t("on")||this.canTouchEvents()||window.navigator.msMaxTouchPoints>0||window.DocumentTouch&&document instanceof DocumentTouch)},isLargeScreen:function(){return(window.innerWidth>0?window.innerWidth:screen.width)>1024},_isWsChannelPage:function(){return e.isChannelPage&&"topcat"===e.configuration.cms},isApple:function(){return/(Macintosh|Mac_PowerPC)/.test(navigator.userAgent)||this.isIos()},isWindows:function(){return/(Windows)/.test(navigator.userAgent)},isSafari:function(){return/(Safari)/.test(navigator.userAgent)&&!/(Chrome)/.test(navigator.userAgent)},isIE:function(){return/(MSIE|WOW64|IEMobile)/.test(navigator.userAgent)},isFirefox:function(){return/(Firefox)/.test(navigator.userAgent)},isFacebookBrowser:function(){return/(FBAN|FBAV)/.test(navigator.userAgent)},isAndroidBrowser:function(){return/(Android|Mobile)/.test(navigator.userAgent)}};return{can:function(e){return n("can",e)},is:function(e){return n("is",e)},which:function(e){return n("which",e)},__cacheClear:function(){o={}}}}),define("module/deviceInspector",["module/bootstrap","module/featureDetector"],function(e,t){function n(){b.$(g).on("resize",i)}function o(){var e=v.documentElement.clientWidth,t=v.documentElement.clientHeight;return e>t?e:t}function i(e){var t=r(),n=c();t!==m&&l(t),n!==f&&u(n)}function s(){return v.documentElement.clientWidth}function a(){return t.is("TouchDevice")}function r(){var e=s(),t="group1";return e>=y&&e
=w&&e<_?t="group3":e>=_&&(t="group4"),t}function c(){var e,t=o(),n=s();return(n=k&&t=k&&t>=x&&(e="tablet"),s()>=C&&!a()&&(e="wide"),e}function l(e){m=e,b.pubsub.emit("deviceGroup",[m])}function u(e){f=e,b.pubsub.emit("deviceType",[f])}function d(){return m}function h(){return f}function p(t,o){return g=t||window,b=o||e,m="group1",f="smart",v=g.document,l(r()),u(c()),n(),{getType:h,getGroup:d}}var m,f,g,v,b,y=400,w=600,_=1008,k=600,C=1008,x=720;return{init:p}}),define("deviceInspector",["module/deviceInspector"],function(e){return e.init()}),define("module/alternativeJsStrategy/processJsDependencies",[],function(){var e=function(e,t){require([e],function(e){e&&e.reProcess&&e.reProcess("#"+t)})};return function(t,n){for(var o in t)e(t[o],n)}}),define("module/polyfill/bind",[],function(){Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,o=function(){},i=function(){return n.apply(this instanceof o&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return o.prototype=this.prototype,i.prototype=new o,i})}),define("module/alternativeJsStrategy/postLoadHandlers/base",["module/bootstrap","module/alternativeJsStrategy/processJsDependencies","module/polyfill/bind"],function(e,t){var n=function(e){e&&(this.elementId=e.getAttribute("id"),this.element=e)};return n.prototype.load=function(){e.$.ajax({url:this.url,dataType:"json",success:this.processSuccessfulResponse.bind(this)})},n.prototype.processJsDependencies=function(e){t(e,this.elementId)},n}),define("module/alternativeJsStrategy/postLoadHandlers/single",["module/bootstrap","module/alternativeJsStrategy/postLoadHandlers/base","module/polyfill/bind"],function(e,t){var n=function(e,n){1===e.getElementsByClassName("show-more-container").length?this.hasShowMoreButton=!0:this.postLoaded=!0,this.url=n,t.call(this,e)};return n.prototype=new t,n.prototype.loadIfShouldBeShown=function(){this.load()},n.prototype.addShowMoreButton=function(){require(["module/alternativeJsStrategy/moreButton"],function(e){new e(this.elementId,this.url)}.bind(this))},n.prototype.processSuccessfulResponse=function(t){if(t.html)for(this.element.innerHTML=t.html;this.element.attributes.length>0;)this.element.removeAttribute(this.element.attributes[0].name);t.moreContentUrl&&!this.hasShowMoreButton&&(this.url=t.moreContentUrl,this.addShowMoreButton()),this.processJsDependencies(t.jsDependencies),e.pubsub.emit("component:postloaded",this.element)},n}),define("module/alternativeJsStrategy/postLoadHandlers/legacySingle",["config","module/alternativeJsStrategy/postLoadHandlers/base","module/bootstrap"],function(e,t,n){var o=function(o,i,s){var a,r,c={};if(i.opts){if(i.opts.bespoke_old_post_load){for(var l in i.opts.js_dependencies)i.opts.js_dependencies[l]="module/"+i.opts.js_dependencies[l];return void(this.bespokeJsOnly=i.opts.js_dependencies)}i.opts.loading_strategy&&(this.postLoaded=this.isPostLoaded(i),i.opts.loading_strategy="include_content"),i.opts.bespoke_post_load_handler&&(this.bespokePostLoadHandler=i.opts.bespoke_post_load_handler)}"remote-portlet"===i.type&&"on"===i.opts.js&&(i.selector="#"+i.id,this.remotePortletMeta=i),c.id=i.id,c.opts=i.opts,i.template&&(c.template=i.template),i.deviceGroups&&(this.visibleDeviceGroups=i.deviceGroups,c.deviceGroups=i.deviceGroups,this.shouldShow(s)?this.isToggleable=!0:this.delayedLoading=!0),a=i.type||i.name,r={batch:{}},r.batch[a]=c,this.url=e.pathPrefix+(e.languageVariant?"/"+e.languageVariant:"")+"/components?alternativeJsLoading=true&"+n.$.param(r),t.call(this,o)};return o.prototype=new t,o.prototype.loadRemotePortletDependency=function(e){var t=e.opts.js_dependency?e.opts.js_dependency:e.opts.id;require(["module/components/"+t],function(t){t.init(e)})},o.prototype.isPostLoaded=function(e){return"post_load"===e.opts.loading_strategy},o.prototype.addShowMoreButton=function(){require(["module/components/moreButton"],function(e){new e(this.elementId,this.url)}.bind(this))},o.prototype.processSuccessfulResponse=function(e){if(this.bespokePostLoadHandler)return void require([this.bespokePostLoadHandler],function(t){t.handleSuccess(this,e);for(var o in e)n.pubsub.emit("component:postloaded",document.getElementById(o))}.bind(this));for(var t in e)this.element.outerHTML=e[t].html,n.pubsub.emit("component:postloaded",document.getElementById(this.elementId)),this.remotePortletMeta?this.loadRemotePortletDependency(this.remotePortletMeta):this.processJsDependencies(e[t].jsDependencies)},o.prototype.shouldShow=function(e){return!this.visibleDeviceGroups||this.visibleDeviceGroups&&-1!==this.visibleDeviceGroups.indexOf(e)},o.prototype.loadIfShouldBeShown=function(e){this.shouldShow(e)&&this.load()},o.prototype.updateDeviceGroupVisibility=function(e){var t="#"+this.elementId;this.shouldShow(e)?n.$(t).removeClass("hidden"):n.$(t).addClass("hidden")},o.prototype.loadIfShouldBeVisible=function(e){return!!this.shouldShow(e)&&(this.load(),!0)},o}),define("module/alternativeJsStrategy/postLoadHandlers/batch",["module/bootstrap","module/alternativeJsStrategy/postLoadHandlers/base"],function(e,t){var n=function(e,n){this.url=n,t.call(this,e),this.load()};return n.prototype=new t,n.prototype.processSuccessfulResponse=function(t){for(var n in t){var o=document.getElementById(n);o&&(o.outerHTML=t[n].html),this.processJsDependencies(t[n].jsDependencies),e.pubsub.emit("component:postloaded",document.getElementById(n))}},n}),define("module/alternativeJsStrategy/loaderFactory",["module/alternativeJsStrategy/postLoadHandlers/single","module/alternativeJsStrategy/postLoadHandlers/legacySingle","module/alternativeJsStrategy/postLoadHandlers/batch"],function(e,t,n){return{build:function(o,i){return o.hasAttribute("data-post-load-url")?new e(o,o.getAttribute("data-post-load-url")):o.hasAttribute("data-comp-meta")?new t(o,JSON.parse(o.getAttribute("data-comp-meta")),i):o.hasAttribute("data-batch-load-url")?new n(o,o.getAttribute("data-batch-load-url")):void 0}}}),define("module/alternativeJsStrategy/controller",["deviceInspector","module/alternativeJsStrategy/loaderFactory","module/bootstrap","module/polyfill/bind"],function(e,t,n){var o=function(){function e(e){var t=/device--(?:feature|smart|tablet|wide)/,o=document.body.className.split(" "),i=o.length,s=-1;for(/^group\d$/.test(e)&&(t=/device--group/);++s','','{{label}} ',' '," ",""].join(""),i={loading:"show-more--loading"},s=function(e){return e?{normal:t.get("moreInfo"),loading:t.get("loading")}:{normal:t.get("streamShowMoreButton"),loading:t.get("loading")}};return function(e){var t=s(e),a=n(o.replace("{{label}}",t.normal)),r=a.find(".show-more__label"),c=n({});return a.on("click",function(e){c.trigger("click")}),{appendTo:function(e){a.appendTo(e)},element:a[0],remove:function(){a.detach()},on:function(e,t){c.on(e,t)},setNormal:function(){r.text(t.normal),a.removeClass(i.loading)},setLoading:function(){r.text(t.loading),a.addClass(i.loading)}}}}),define("module/alternativeJsStrategy/moreButton",["module/bootstrap","module/featureDetector","module/stream/endpoint","module/alternativeJsStrategy/processJsDependencies","module/stream/show_more_button"],function(e,t,n,o,i){t.can("CssTransition")&&e.$("body").addClass("css-anim");var s=function(t,o){var s=document.getElementById(t),a=e.$({});this.contentContainer=s.querySelector(".show-more-container"),this.$contentContainer=e.$(this.contentContainer),this.elementId=t,this.endpoint=new n(o,a,"more-button","json"),this.button=new i(!0),a.on("more-button:requesting",this.handleRequesting.bind(this)),a.on("more-button:html-with-js",this.handleNewContent.bind(this)),a.on("more-button:noupdates",this.button.remove.bind(this)),a.on("more-button:error",this.button.remove.bind(this)),this.button.on("click",this.handleShowMoreClick.bind(this)),this.button.appendTo(s)};return s.prototype.handleShowMoreClick=function(){this.endpoint.request()},s.prototype.handleRequesting=function(){this.button.setLoading()},s.prototype.handleNewContent=function(e,t){var n=document.createElement("div");n.innerHTML=t.html;var i=n.querySelector("a");this.$contentContainer.append(n.childNodes),i.focus(),t.moreContentUrl?(this.endpoint.setUrl(t.moreContentUrl),this.button.setNormal()):this.button.remove(),o(t.jsDependencies,this.elementId)},s}),define("module/assortedUtils",[],function(){function e(e){var t;try{t=JSON.parse(e)}catch(e){}return t}function t(e,t,n){for(var o=0;o-1},t.prototype.isOptedIn=function(){return e.readCookie(this.cookieName).indexOf(this.optInValue)>-1},t.prototype.isDismissed=function(){return e.readCookie(this.cookieName).indexOf(this.dismissedValue)>-1},t.prototype.isSurveyTaken=function(){return e.readCookie(this.cookieName).indexOf(this.surveyTakenValue)>-1},t.prototype.optIn=function(){this.isOptedIn()||e.appendToCookie(this.cookieName,this.optInValue,this.cookieExpiryInDays),this.isOptedOut()&&e.removeFromCookie(this.cookieName,this.optOutValue,this.cookieExpiryInDays)},t.prototype.optOut=function(){this.isOptedOut()||e.appendToCookie(this.cookieName,this.optOutValue,this.cookieExpiryInDays),this.isOptedIn()&&e.removeFromCookie(this.cookieName,this.optInValue,this.cookieExpiryInDays)},t.prototype.setSurveyTakenCookie=function(){e.appendToCookie(this.cookieName,this.surveyTakenValue,this.cookieExpiryInDays)},t.prototype.setBannerDismissedCookie=function(){e.appendToCookie(this.cookieName,this.dismissedValue,this.cookieExpiryInDays)},t.prototype.overrideDesktopCookie=function(t,n){e.setCookie(t,n,this.cookieExpiryInDays)},t.prototype.getBannerDismissedClass=function(){return this.isDismissed(this.cookieName,this.dismissedValue)?"":"news-banner--fixed"},t.prototype.getSurveyTakenClass=function(){return this.isSurveyTaken(this.cookieName,this.surveyTakenValue)?"news-banner__survey--hidden":""},t.prototype.removeFixedModifierFromBanner=function(){var e=$("#news-banner");e.hasClass("news-banner--fixed")&&e.removeClass("news-banner--fixed")},t.prototype.addOrbFooterPadding=function(){this.isDismissed(this.cookieName,this.dismissedValue)||(n=$("#orb-footer"),n.addClass("news-banner__orb-spacing"))},t.prototype.removeOrbFooterPadding=function(){n.hasClass("news-banner__orb-spacing")&&n.removeClass("news-banner__orb-spacing")},t.prototype.displayBanner=function(){var e=$("#news-banner__outer-container").detach();e=e.html().replace("{{explainerSurveyDisplay}}",this.getSurveyTakenClass()).replace("{{isExplainerBannerFixed}}",this.getBannerDismissedClass()),$("#page").append(e),this.addOrbFooterPadding()},t}),define("module/components/mediaPlayer/eventDelegator",["module/bootstrappedJquery"],function(e){function t(e,t,n){e.bind(t,function(o){var i=n?o:e;s.trigger(t,i),a.push({event:t,params:[void 0,i]})})}function n(e){t(e,"initialised"),t(e,"playing"),t(e,"pause"),t(e,"ended"),t(e,"error",!0)}function o(e,t){for(var n=0;n0){for(var n=0;n1){var i=this.normalisePartnerUrl(n+o);i&&(e.b_wspartner_url=i)}},s.prototype.getPartnerUrl=function(){var e=this.url.match(/\?(.+&)?wspartner=([^&?]+)/);if(null!==e){var t=e[2],n=document.createElement("a");return n.setAttribute("href",decodeURIComponent(t)),n}return null},s.prototype.getViewportWidth=function(){return u(window).width()},s.prototype.getViewportHeight=function(){return u(window).height()},s.prototype.getScreenRes=function(){return window.screen.width+"x"+window.screen.height},s.prototype.getVirtualSite=function(){return"virtual_site"in this.config.comscoreAnalytics?this.config.comscoreAnalytics.virtual_site:s.VIRTUAL_SITE_NONE},s.prototype.getEventType=function(){return s.EVENT_TYPE_PAGE_VIEW},s.prototype.getBusinessUnit=function(){return this.config.isWorldService?s.BUSINESS_UNIT_WS:s.BUSINESS_UNIT_NONE},s.prototype.getProjectSource=function(){return this.config.isWorldService?s.PROJECT_SOURCE_WS:s.PROJECT_SOURCE_NONE},s.prototype.getPageName=function(){return window.location.pathname.replace("/","").replace(/\//g,".")},s.prototype.getSyndicationPartner=function(){return"bbc|rd|"+o.getGroup()},s.prototype.getSectionId=function(){if(this.asset.section)return this.asset.section.id},s.prototype.getAssetHeadline=function(){return this.asset.headline?this.asset.headline:s.ASSET_HEADLINE_NONE},s.prototype.getAssetByline=function(){if(this.asset.byline)return this.asset.byline.name},s.prototype.getArticleLength=function(){return"number"==typeof this.asset.length?this.asset.length:null},s.prototype.getAdvertisingEnabled=function(){return this.asset.options&&this.asset.options.allowAdvertising?1:0},s.prototype.getSearchTerm=function(){return this.config.search?this.config.search.term:null},s.prototype.getSearchResults=function(){return this.config.search?this.config.search.results:null},s.prototype.getReferrer=function(){return document.referrer},s.prototype.getC7=function(){return window.location.href},s.prototype.getTitle=function(){return document.title},s.prototype.getCustomPageUrl=function(){return window.location.pathname!==this.asset.asset_uri?window.location.pathname:null},s.prototype.getCharacterEncoding=function(){return document.querySelector("meta[charset]").getAttribute("charset")},s.prototype.getTimestamp=function(){return Math.floor(+new Date/1e3)},s.prototype.getTopics=function(){return this.asset.topicTags},s.prototype.getBLink=function(e,t){return this.getBLinkComponents(e,t).map(function(e){return h(e)?"na":e}).join("|")},s.prototype.getBLinkComponents=function(e,t){return[t.promoted_channel||null,t.channel_location||null,t.module_name||null,t.link_type||null,t.link_name||null,t.link_position||null,t.links_in_module||null,t.link_info||null,t.section_location||null,t.page_type_location||null,t.link_placement||null,t.destination||null,e]},s.prototype.normalisePartnerUrl=function(e){return e=e.toLowerCase(),e=c(e),e=l(e),e=a(e)},s.prototype.isEmbedUrl=function(){return-1!==this.url.indexOf("/embed?")},s.prototype.processConfig=function(){for(var e=this.comscoreConfig.hidden||{},t=0;t0&&(p++,this.registerHiddenEventListeners(n))}},s.prototype.registerHiddenEventListeners=function(e){switch(e.type){case"twite":this.registerSingleHiddenEventListener(e,"twite__channel-link",this.shareToolLinkPosition(e));break;case"extractedtwite":this.registerSingleHiddenEventListener(e,"extracted__channel-link",this.shareToolLinkPosition(e))}},s.prototype.registerSingleHiddenEventListener=function(e,t,n){var o=this;n=n||0,document.getElementsByClassName(e.selector)[0].getElementsByClassName(t)[0].addEventListener("click",function(){o.onShareButtonClicked(e.name,n)},!1)},s.prototype.shareToolLinkPosition=function(e){for(var t=document.getElementsByClassName("sharetools")[0].getElementsByTagName("li")||0,n=1,o=0;o/g,">").replace(/"/g,""").replace(/'/g,"'")}var o=function(t){function n(){a.resizeImages([a.imageReplaceNodelist,a.backgroundImageReplaceNodelist])}var o=e.$;"string"==typeof t&&o(t).each(function(e,t){o(t).addClass("js-image-replace")}),this.widths=[96,130,165,200,235,270,304,340,375,410,445,485,520,555,590,624,625,660,695,736,768,772,800,834,872,904,936,950,976,1024,1536,2048],this.programmesWidths=[96,128,160,192,208,240,272,304,336,384,416,448,480,528,560,592,624,656,688,736,768,800,832,864,912,944,960,976,1024,1536,1920],this.isResizing=!1,this.imageReplaceNodelist=null,this.backgroundImageReplaceNodelist=null,this.upscale=!e.config.hasOwnProperty("imageUpscale")||e.config.imageUpscale,e.config.features2&&e.config.features2.hasOwnProperty("lazy_images")?this.lazyImages=e.config.features2.lazy_images:this.lazyImages=!0;var i=e.window.document.documentElement.clientHeight,s=i&&i>400?i/2:200;this.lazyBufferZone=e.config.hasOwnProperty("imageBuffer")?e.config.imageBuffer:s;var a=this;this.changeDivsToImgs(),e.pubsub.on("imageEnhancer:resize",n),e.pubsub.on("imageEnhancer:scroll",n),e.pubsub.on("component:loaded",function(){a.changeDivsToImgs(),a.initResizeImages()}),e.pubsub.on("component:postloaded",function(){a.changeDivsToImgs(),a.initResizeImages()}),setTimeout(function(){a.initResizeImages()},250)};return o.prototype={changeDivsToImgs:function(){$("div.js-delayed-image-load").each(function(e,t){t="number"!=typeof t?t:e;var o=t.getAttribute("data-width"),i=t.getAttribute("data-height"),s="";o>0&&i>0&&(s=' width="'+t.getAttribute("data-width")+'" height="'+t.getAttribute("data-height")+'"');var a=n(t.getAttribute("data-alt"));$(t).replaceWith(' ")})},initResizeImages:function(){this.imageReplaceNodelist=$(".js-image-replace"),this.backgroundImageReplaceNodelist=$(".js-bg-image-replace"),this.resizeImages([this.imageReplaceNodelist,this.backgroundImageReplaceNodelist]),window.addEventListener?(window.addEventListener("resize",function(){e.pubsub.emit("imageEnhancer:resize")},!1),this.lazyImages&&this.addScrollEventListener()):window.attachEvent("resize",function(){e.pubsub.emit("imageEnhancer:resize")})},addScrollEventListener:function(){window.addEventListener("scroll",t.debounce(function(){e.pubsub.emit("imageEnhancer:scroll")},100),!1)},removeLoadingClass:function(){$(this).removeClass("responsive-image__img--loading")},resizeImages:function(e){if(!this.isResizing){this.isResizing=!0;for(var t=0,n=e.length;te.clientWidth},calcImgSrc:function(e,t){if(null==e)return!1;if(-1!==e.indexOf("cps-images-private"))return e;var n=e.match(/\/news\/(?:ws\/)?(\d*)/)||e;if(null===n||"string"==typeof n){var o=/\/images\/ic\/(\d+)x(\d+)/,i=e.match(o);if(null===i)return!1;var s=parseInt(i[1],10),a=parseInt(i[2],10),r=this.matchBestProgrammesWidth(t),c=r/s,l=Math.round(a*c),u="/images/ic/"+r+"x"+l;return e.replace(o,u)}var d=e.indexOf(n[1]),h=n[1].length;return e.substr(0,d)+this.matchBestWidth(t)+e.substr(d+h)},matchBestProgrammesWidth:function(e){return this.matchBestWidth(e,this.programmesWidths)},matchBestWidth:function(e,t){t=t||this.widths;for(var n=t.length,o=t[n-1];n--;)t[n]=e&&(o=t[n]);return o},isBelowFold:function(e,t){var n=e.height()-1+e.scrollTop();return t.offset().top>n+this.lazyBufferZone}},o}),define("module/components/mediaPlayer/settingsBuilder",["module/components/mediaPlayer/comscoreSettings","module/components/mediaPlayer/playlistSelector","module/components/mediaPlayer/autoPlay","module/assortedUtils","module/featureDetector","module/imageenhancer","istats-1","module/bootstrap"],function(e,t,n,o,i,s,a,r){function c(o){var s=u(h),r=o.otherSettings||{};if(d.extend(!0,s,o.settings,e.get()),s.counterName||(s.counterName=a.getCountername()),s.autoplay=n.isEnabled(o),s.playlistObject){var c=s.playlistObject;r.advertisingAllowed&&i.is("DisplayingGnlAds")&&c.items.unshift({kind:"advert"}),c.holdingImageURL||(c.holdingImageURL=l(r.unProcessedImageUrl,r.placeholderWidth))}else if(r.playlist){var p=r.playlist;s.playlist=t.selectPlaylist(p),p.overrideHoldingImage&&(s.overrideHoldingImage=l(p.overrideHoldingImage,r.placeholderWidth))}return s}function l(e,t){return e}var u=(o.forEach,o.objectCreate),d=(o.mergeObject,new s,r.$),h={appName:"news",appType:"responsive",product:"news",responsive:!0,waitOnPluginLoad:!0,superResponsive:!0,ui:{subtitles:{enabled:!0,defaultOn:!0}}};return{fromPlayable:c}}),define("module/components/mediaPlayer/main",["module/assortedUtils","module/components/mediaPlayer/eventDelegator","module/components/mediaPlayer/flashPlayerHandler","module/components/mediaPlayer/pluginLoader","module/components/mediaPlayer/settingsBuilder","module/components/mediaPlayer/view","module/globalPubsub","vendor/polyfill/promise","require"],function(e,t,n,o,i,s,a,r,c){function l(){return new w(function(e){c(["bump-3"],function(t){e(t)})})}function u(e,n,s){var a,r=i.fromPlayable(s);l().then(function(i){return a=i(e).player(r),t.addPlayer(a),a.bind("fullscreenExit",function(t){e.style.paddingBottom="0",setTimeout(function(){e.style.paddingBottom="56.25%"},100)}),o({instance:a,domId:n})}).then(function(){a.load()})}function d(e){a.emit("player:initialised",[e])}function h(e,t){n.handleNewPlayer(t),d(t)}function p(){b("initialised",h)}function m(){y=s.findUnprocessedMediaPlaceholders();y&&(p(),_(y,function(e){k++;var t="media-player-"+k;s.markPlaceholderAsProcessed(e),s.setPlaceholderId(e,t);var n=s.getPlayableForPlaceholder(e);n&&(n.otherSettings.placeholderWidth=s.getPlaceholderWidth(e),u(e,t,n))}))}function f(e){s.activatePlaceholder(e)}function g(){n.hide(y)}function v(){n.show(y)}function b(e,n){t.subscribe(e,n)}var y,w=r.Promise,_=e.forEach,k=(e.jsonParse,0);return{hideFlashPlayers:g,processNewPlayers:m,showFlashPlayers:v,subscribeToPlayerEvent:b,activatePlaceholder:f}}),define("module/stats/statsBindingAdapter",["module/globalPubsub","module/components/mediaPlayer/main"],function(e,t){function n(e){return{opts:{mediaType:e.kind()},name:e.name()}}t.subscribeToPlayerEvent("playing",function(t,o){e.emit("video:play",[n(o)])},!0),t.subscribeToPlayerEvent("pause",function(t,o){e.emit("video:pause",[n(o)])},!0),t.subscribeToPlayerEvent("ended",function(t,o){e.emit("video:end",[n(o)])},!0),t.subscribeToPlayerEvent("initialised",function(t,o){e.emit("video:load",[n(o)])},!0)}),define("module/stats/statsSubscriber",["module/bootstrap","istats-1","module/stats/statsBindingAdapter"],function(e,t){function n(e,n){this.config=e||{},this.istats=n||t,this.pageviews=[],this.hidden=[],this.links=[],this.processConfig(),this.bindEvents()}return n.prototype={bindEvents:function(){var t=this;e.pubsub.on("component:loaded",function(e){t.handleComponentLoaded(e)}),e.pubsub.on("component:postloaded",function(e){void 0!==e&&t.handlePostLoadedComponent(e)})},handleComponentLoaded:function(e){this.linksContainsComponentName(e)&&this.registerTrackingLink(this.getLinkByName(e))},getLinkByName:function(e){for(var t=0,n=this.links.length;t0&&(a=s.data("entityid"),(u=a.replace(/.*#/,""))!==a&&(l+="-"+u)),this.istats.track(t,{region:d[r],linkLocation:l})}},processConfig:function(){var e=this.config.pageviews||{};this.addPageviews(e);var t=this.config.hidden||{};this.addHidden(t);var n=this.config.links||{};this.addTrackingLinks(n)},appendLabels:function(e,t){return"function"==typeof e?this.applyLabels(e,t):e}},n}),define("module/stats/statsConfig",[],function(){"use strict";var e=function(e){return void 0!==e.name?e.name:"rmp"};return{links:[{name:"us-election-2016-live",selector:'[data-entityid*="us_live_page"]'},{name:"us-election-2016-az",selector:".us2016-key-states__footer"},{name:"us-election-2016-banner",selector:[".us2016-banner__title",".us-banner-link--infull",".us-banner-link--how-to-win"]},{name:"us-election-2016-ticker",selector:".us2016-ticker__headline"},{name:"topic_link_top",selector:'[data-entityid="topic_link_top"]'},{name:"topic_link",selector:'[data-entityid="topic_link"]'},{name:"topic_link_leading",selector:'[data-entityid*="leading-topics-panel"]'},{name:"topic_link_bottom",selector:'[data-entityid="topic_link_bottom"]'},{name:"recommendation_learn_more",selector:'[data-entityid*="recommendation_learn_more"]'},{name:"world-news-tv-programmes",selector:'[data-entityid*="world-news-tv-programmes"]'},{name:"world-news-tv-contact-us",selector:'[data-entityid*="world-news-tv-contact-us"]'},{name:"world-news-tv-radio",selector:'[data-entityid*="world-news-tv-radio"]'},{name:"more-from-this-index-story",selector:'[data-entityid*="more-section-index"]'},{name:"more-from-this-index-section-label",selector:'[data-entityid*="more-from-this-index-section-label"]'},{name:"pullout-inner-link",selector:'[data-entityid*="pullout-inner-link"]'},{name:"hyper-puff-headline",selector:".fetch-hyperpuff"},{name:"pictures",selector:'[data-entityid*="pictures"]'},{name:"more-corresp",selector:'[data-entityid*="csp-hyperpuff"]'},{name:"headline",selector:'[data-entityid*="correspondent-byline"]'},{name:"latest-posts",selector:'[data-entityid*="latest-posts"]'},{name:"more-story",selector:'[data-entityid*="more-on-this-story"]'},{name:"experts",selector:'[data-entityid*="correspondent-promotion-now"]'},{name:"av-stories-live",selector:'[data-entityid*="av-stories-live-compact-tablet"]'},{name:"av-stories-live",selector:'[data-entityid*="av-stories-live-wide"]'},{name:"headlines-promo",selector:'[data-entityid*="headlines-promo-wide"]'},{name:"headlines-promo",selector:'[data-entityid*="headlines-promo-compact-tablet"]'},{name:"more-uk",selector:'[data-entityid*="more-uk"]'},{name:"more-news",selector:'[data-entityid*="more-news"]'},{name:"top-stories",selector:'[data-entityid*="container-top-stories"]'},{name:"canada-stories",selector:'[data-entityid*="canada-stories"]'},{name:"us-stories",selector:'[data-entityid*="us-stories"]'},{name:"top-stories",selector:'[data-entityid*="top-stories"]'},{name:"live-event-1",selector:'[data-entityid="live_event_1"]'},{name:"live-event-2",selector:'[data-entityid="live_event_2"]'},{name:"cluster1",selector:'[data-entityid*="cluster_1"]'},{name:"cluster2",selector:'[data-entityid*="cluster_2"]'},{name:"full-story",selector:'[data-entityid*="full-story"]'},{name:"must-see",selector:'[data-entityid*="must-see"]'},{name:"av",selector:'[data-entityid*="av-stories-now"]'},{name:"features-promo",selector:'[data-entityid*="lead-feature"]'},{name:"features",selector:'[data-entityid*="feature-main"]'},{name:"explainers",selector:'[data-entityid*="explainers"]'},{name:"the-reporters",selector:'[data-entityid*="the_reporters"]'},{name:"also-in-the-news",selector:'[data-entityid*="also_in_news"]'},{name:"navigation-brand",selector:"#brand"},{name:"breaking-news-banner-pal",selector:"#breaking-news-container"},{name:"story-body",selector:".story-body__link"},{name:"the-papers",selector:'[data-entityid*="latest-content"]'},{name:"features-and-analysis",selector:'[data-entityid*="features-and-analysis"]'},{name:"strapline",selector:'[data-entityid*="strapline"]'},{name:"more-from-this-index-headline",selector:'[data-entityid*="more-from-this-index-headline"]'},{name:"most-read",selector:'[data-entityid*="most-popular-read"]'},{name:"most-watched",selector:'[data-entityid*="most-popular-watched"]'},{name:"most-read-local",selector:".page--local .most-popular .panel-read"},{name:"most-watched-local",selector:".page--local .most-popular .panel-watched"},{name:"from-other-news-sites",selector:"#comp-from-other-news-sites",type:"external"},{name:"exrelinks-primary",selector:'[data-entityid*="exrelinks-primary"]',type:"external"},{name:"exrelinks-secondary",selector:'[data-entityid*="exrelinks-secondary"]',type:"external"
},{name:"topical-top-story",selector:[".hard-news-unit--topical .faux-block-link__overlay-link",".hard-news-unit--topical .hard-news-unit__headline"]},{name:"topical-related-content",selector:"#topical-stories .related-content-links"},{name:"travel-local",selector:".container--travel-weather .travel"},{name:"weather-local",selector:".container--travel-weather .weather"},{name:"local-live-internal",selector:"#comp-local-live"},{name:"local-live-external",selector:"#comp-local-live",type:"external"},{name:"local-stream-story-promo",selector:".comp-stream-story-promo__link"},{name:"narrow-navigation-primary",selector:".navigation--narrow__toplevel"},{name:"narrow-navigation-secondary",selector:".secondary-navigation--narrow"},{name:"wide-navigation-primary",selector:".navigation--wide"},{name:"wide-navigation-primary-overflow",selector:".js-navigation-panel-primary"},{name:"wide-navigation-secondary",selector:".navigation-wide-list--secondary"},{name:"wide-navigation-secondary-overflow",selector:".js-navigation-panel-secondary"},{name:"navigation-bottom",selector:".navigation--bottom"},{name:"england_nav_link",selector:'[data-entityid="england_nav_link"]'},{name:"nireland_nav_link",selector:'[data-entityid="nireland_nav_link"]'},{name:"scotland_nav_link",selector:'[data-entityid="scotland_nav_link"]'},{name:"wales_nav_link",selector:'[data-entityid="wales_nav_link"]'},{name:"connected-stream-internal",selector:["#comp-connected-stream .update .update__image","#comp-connected-stream .update .update__headline","#comp-connected-stream .update .update__body"]},{name:"connected-stream-external",selector:"#comp-connected-stream .update .update__body",type:"external"},{name:"election-2015-nation-navigation",selector:".mininav--election2015 .mininav__nation"},{name:"vocab-faq",selector:'[data-entityid*="vocab-faq"]'}],pageviews:[{on:"tabs:activate:mostread",countername:"news.popular.read.page"},{on:"tabs:activate:topstories",countername:"news.page"},{on:"tabs:activate:livetext",countername:function(e){return e.replace(/(\d+).*$/,"$1.page")}},{on:"tabs:activate:keypoints",countername:function(e){return e.replace(/(\d+).*$/,"$1.keypoints.page")}},{on:"map:asset:request:success",countername:function(e,t,n){return n.countername||e}}],hidden:[{on:"nav:header:open",action_name:"top_navigation_open"},{on:"nav:footer:open",action_name:"bottom_navigation_open"},{on:"locator:submitSearch",action_name:"news.locator"},{on:"locator:geoLocation",action_name:"news.locator"},{on:"video:load",action_type:"video",action_name:"load",labels:function(t){return{player_name:e(t)}}},{on:"video:play",action_type:"video",action_name:"play",labels:function(t){return{player_name:e(t)}}},{on:"video:pause",action_type:"video",action_name:"pause",labels:function(t){return{player_name:e(t)}}},{on:"video:end",action_type:"video",action_name:"end",labels:function(t){return{player_name:e(t)}}},{on:"tabs:activate:maprelated",action_type:"tabchange",action_name:"map-index",labels:{tab_name:"related"}},{on:"tabs:activate:maptopstories",action_type:"tabchange",action_name:"map-index",labels:{tab_name:"topstories"}},{on:"tabs:activate:mapmostwatched",action_type:"tabchange",action_name:"map-index",labels:{tab_name:"mostwatched"}},{on:"map:index:toggle",action_type:"toggle",action_name:"map-index",labels:function(e,t){return{section:e,toggle:t}}},{on:"map:asset:summary",action_type:"toggle",action_name:"map-asset-summary",labels:function(e){return{toggle:e}}},{on:"map:index:topstories",action_type:"toggle",action_name:"map-index-topstories",labels:function(e){return{toggle:e}}},{on:"medianav:select",action_type:"select",action_name:"medianav",labels:function(e,t){return{headline:e.headline,live:e.video.live,index:t}}},{on:"gallery:picture:click",action_type:"click",action_name:"gallery-enhanced"},{on:"gallery:viewer:toggle",action_type:"toggle",action_name:"gallery-enhanced-back",labels:function(e){return{position:e}}},{on:"gallery:caption:toggle",action_type:"toggle",action_name:"gallery-enhanced-caption",labels:function(e){return{toggle:e}}},{on:"gallery:imageonly:toggle",action_type:"toggle",action_name:"gallery-enhanced-image-only",labels:function(e){return{toggle:e}}},{on:"gallery:paginate:click",action_type:"click",action_name:"gallery-enhanced-paginate",labels:function(e,t){return{visibility:e,position:t}}},{on:"stories:more:success",action_type:"select",action_name:"blog-morestories",labels:function(e,t){return{request_count:t.requestCount}}},{on:"stories:fullyloaded",action_type:"event",action_name:"blog-fullyloaded"},{on:"stats:nav:narrow:primary:visibility",action_type:"toggle",action_name:"nav-narrow-primary-visibility",labels:function(e){return{visibility:e}}},{on:"stats:nav:narrow:secondary:visibility",action_type:"toggle",action_name:"nav-narrow-secondary-visibility",labels:function(e){return{visibility:e}}},{on:"stats:nav:narrow:footer:visibility",action_type:"toggle",action_name:"nav-narrow-footer-visibility",labels:function(e){return{visibility:e}}},{on:"stats:nav:narrow:top:primary:accordion:visibility",action_type:"toggle",action_name:"nav-narrow-top-primary-accordion-visibility",labels:function(e,t){return{visibility:e,link:t}}},{on:"stats:nav:narrow:bottom:primary:accordion:visibility",action_type:"toggle",action_name:"nav-narrow-bottom-primary-accordion-visibility",labels:function(e,t){return{visibility:e,link:t}}},{on:"stats:nav:wide:primary:overflow:visibility",action_type:"toggle",action_name:"nav-wide-primary-overflow-visibility",labels:function(e){return{visibility:e}}},{on:"stats:nav:wide:secondary:overflow:visibility",action_type:"toggle",action_name:"nav-wide-secondary-overflow-visibility",labels:function(e){return{visibility:e}}},{on:"stats:nav:narrow:click",action_type:"click",action_name:"nav-narrow-click",labels:function(e,t,n){return{link:e,url:t,strategy:n}}},{on:"stats:nav:wide:outsidePanel:click",action_type:"click",action_name:"nav-wide-outsidePanel-click",labels:function(e,t,n,o){return{link:e,url:t,strategy:n,withinMorePanel:o}}},{on:"stats:nav:wide:insidePanel:click",action_type:"click",action_name:"nav-wide-insidePanel-click",labels:function(e,t,n,o){return{link:e,url:t,strategy:n,withinMorePanel:o}}},{on:"banner:ticker:toggle",action_type:"toggle",action_name:"banner-ticker-click",labels:function(e){return{toggle:e}}},{on:"eucountry:toggle",action_type:"toggle",action_name:"eucountry-click",labels:function(e){return{toggle:e}}},{on:"euexplainer:toggle",action_type:"toggle",action_name:"euexplainer-click",labels:function(e){return{toggle:e}}},{on:"election:map:zoom",action_type:"zoom",action_name:"election-map-zoom",labels:function(e){return{zoom:e}}},{on:"scotref:map",action_type:"click",action_name:"scotref-map",labels:function(e){return{action:e}}},{on:"election:findaresult:change",action_type:"change",action_name:"election-findaresult-change",labels:function(e){return{url:e}}},{on:"stats:comments:open",action_type:"comments",action_name:"show_comments"},{on:"find-local:overlay:done",action_type:"done",action_name:"Locator"},{on:"stream:refresh",action_type:"click",action_name:"stream-refresh"},{on:"stream:showmore",action_type:"click",action_name:"stream-showmore"},{on:"stream:back-to-top",action_type:"click",action_name:"stream-back-to-top"},{on:"scotref:summary:filter",action_type:"click",action_name:"scotref-table-filter",labels:function(e){return{click:e}}},{on:"marketdata:chart:toggle",action_type:"toggle",action_name:"marketdata-chart-toggle",labels:function(e){return{chart_ticker:e.chart_ticker,chart_timespan:e.chart_timespan,chart_width:e.chart_width,chart_height:e.chart_height}}},{on:"election:findYourConstituency:submitSearch",action_type:"click",action_name:"election-constituency-search-submit"},{on:"election:findYourConstituency:searchError",action_type:"click",action_name:"election-constituency-search-error",labels:function(e){return{error_type:e}}},{on:"tabs:activate:summary",action_type:"click",action_name:"ni-election-tabs",labels:function(){return{click:"summary"}}},{on:"tabs:activate:stageByStage",action_type:"click",action_name:"ni-election-tabs",labels:function(){return{click:"stages"}}},{on:"tabs:activate:popular-vote2016",action_type:"click",action_name:"us2016-pop-vote-tabs",labels:function(){return{click:"2016"}}},{on:"tabs:activate:popular-vote2012",action_type:"click",action_name:"us2016-pop-vote-tabs",labels:function(){return{click:"2012"}}},{on:"tabs:activate:popular-vote2008",action_type:"click",action_name:"us2016-pop-vote-tabs",labels:function(){return{click:"2008"}}},{on:"tabs:activate:popular-vote2004",action_type:"click",action_name:"us2016-pop-vote-tabs",labels:function(){return{click:"2004"}}},{on:"tabs:activate:congress2016",action_type:"click",action_name:"us2016-congress-tabs",labels:function(){return{click:"2016"}}},{on:"tabs:activate:congress2014",action_type:"click",action_name:"us2016-congress-tabs",labels:function(){return{click:"2014"}}},{on:"tabs:activate:congress2012",action_type:"click",action_name:"us2016-congress-tabs",labels:function(){return{click:"2012"}}},{on:"tabs:activate:congress2010",action_type:"click",action_name:"us2016-congress-tabs",labels:function(){return{click:"2010"}}},{on:"ticker:pause:us2016-ticker",action_type:"click",action_name:"us-election-2016-ticker-pause"},{on:"ticker:play:us2016-ticker",action_type:"click",action_name:"us-election-2016-ticker-play"},{on:"ticker:previous:us2016-ticker",action_type:"click",action_name:"us-election-2016-ticker-previous"},{on:"ticker:next:us2016-ticker",action_type:"click",action_name:"us-election-2016-ticker-next"},{on:"ni:election:selectStage",action_type:"click",action_name:"ni-stage-select",labels:function(e){return{click:e}}},{on:"election:summary:filter",action_type:"click",action_name:"general-elections-table-filter",labels:function(e){return{click:e}}},{on:"map:fullscreen:enter",action_type:"click",action_name:"us2016-results-map-launcher",labels:{click:"interact"}},{on:"map:search:focus",action_type:"focus",action_name:"us2016-results-map-search-focus",labels:{click:"select-search"}},{on:"region:chosen:select",action_type:"click",action_name:"us2016-results-map-search-select",labels:function(e){return{click:e}}},{on:"reset-clicked",action_type:"click",action_name:"us2016-results-map-reset",labels:{click:"reset-map"}},{on:"map:open:accordion",action_type:"click",action_name:"us2016-results-map-accordion",labels:{click:"open-accordion"}},{on:"region:chosen:mapclick",action_type:"click",action_name:"us2016-results-map-state",labels:function(e){return{click:e}}},{on:"map:fullscreen:exit",action_type:"click",action_name:"us2016-results-map-close",labels:{click:"close-map"}},{on:"news:recommendation:load",action_type:"load",action_name:"news_recommendation",labels:function(e){return{content_name:e.content_name,content_count:e.content_count,rec_source:e.rec_source,rec_set:e.rec_set,breakpoint_type:e.breakpoint_type}}},{on:"news:recommendation:load_fail_api_down",action_type:"load_fail_api_down",action_name:"news_recommendation",labels:function(e){return{breakpoint_type:e.breakpoint_type}}},{on:"news:recommendation:load_fail_low_content_volume",action_type:"load_fail_low_content_volume",action_name:"news_recommendation",labels:function(e){return{breakpoint_type:e.breakpoint_type}}},{on:"betamax:video:playlist_loaded",action_type:"video",action_name:"play",labels:function(e){return{play_type:e.play_type,item_position:e.item_position,episode_id:e.vpid,section:e.section,action_location:e.action_location}}},{on:"vocab:clicked:enabled",action_type:"on",action_name:"vocab_button",labels:{vocab_on:1}},{on:"vocab:clicked:disabled",action_type:"off",action_name:"vocab_button"},{on:"vocab:cookie:vocab-enabled",labels:{vocab_on:1}},{on:"vocab:error",action_type:"vocab-error",action_name:"vocab-cymrufyw",labels:function(e){return{error_message:e}}},{on:"shareTools:visible",action_type:"view",action_name:"end-article-sharetools"},{on:"shareTools:balatarin:clicked",action_type:"share",action_name:"share_balatarin"},{on:"shareTools:extractedbalatarin:clicked",action_type:"share",action_name:"share_extractedbalatarin"},{on:"shareTools:douban:clicked",action_type:"share",action_name:"share_douban"},{on:"shareTools:extracteddouban:clicked",action_type:"share",action_name:"share_extracteddouban"},{on:"shareTools:email:clicked",action_type:"share",action_name:"share_email"},{on:"shareTools:extractedemail:clicked",action_type:"share",action_name:"share_extractedemail"},{on:"shareTools:facebook:clicked",action_type:"share",action_name:"share_facebook"},{on:"shareTools:extractedfacebook:clicked",action_type:"share",action_name:"share_extractedfacebook"},{on:"shareTools:flipboard:clicked",action_type:"share",action_name:"share_flipboard"},{on:"shareTools:extractedflipboard:clicked",action_type:"share",action_name:"share_extractedflipboard"},{on:"shareTools:friendfeed:clicked",action_type:"share",action_name:"share_friendfeed"},{on:"shareTools:extractedfriendfeed:clicked",action_type:"share",action_name:"share_extractedfriendfeed"},{on:"shareTools:googleplus:clicked",action_type:"share",action_name:"share_googleplus"},{on:"shareTools:extractedgoogleplus:clicked",action_type:"share",action_name:"share_extractedgoogleplus"},{on:"shareTools:hatena:clicked",action_type:"share",action_name:"share_hatena"},{on:"shareTools:extractedhatena:clicked",action_type:"share",action_name:"share_extractedhatena"},{on:"shareTools:kaixin:clicked",action_type:"share",action_name:"share_kaixin"},{on:"shareTools:extractedkaixin:clicked",action_type:"share",action_name:"share_extractedkaixin"},{on:"shareTools:kakaostory:clicked",action_type:"share",action_name:"share_kakaostory"},{on:"shareTools:extractedkakaostory:clicked",action_type:"share",action_name:"share_extractedkakaostory"},{on:"shareTools:line:clicked",action_type:"share",action_name:"share_line"},{on:"shareTools:extractedline:clicked",action_type:"share",action_name:"share_extractedline"},{on:"shareTools:linkedin:clicked",action_type:"share",action_name:"share_linkedin"},{on:"shareTools:extractedlinkedin:clicked",action_type:"share",action_name:"share_extractedlinkedin"},{on:"shareTools:livejournal:clicked",action_type:"share",action_name:"share_livejournal"},{on:"shareTools:extractedlivejournal:clicked",action_type:"share",action_name:"share_extractedlivejournal"},{on:"shareTools:meneame:clicked",action_type:"share",action_name:"share_meneame"},{on:"shareTools:extractedmeneame:clicked",action_type:"share",action_name:"share_extractedmeneame"},{on:"shareTools:messengerdesktop:clicked",action_type:"share",action_name:"share_messengerdesktop"},{on:"shareTools:extractedmessengerdesktop:clicked",action_type:"share",action_name:"share_extractedmessengerdesktop"},{on:"shareTools:messengermobile:clicked",action_type:"share",action_name:"share_messengermobile"},{on:"shareTools:extractedmessengermobile:clicked",action_type:"share",action_name:"share_extractedmessengermobile"},{on:"shareTools:mixi:clicked",action_type:"share",action_name:"share_mixi"},{on:"shareTools:extractedmixi:clicked",action_type:"share",action_name:"share_extractedmixi"},{on:"shareTools:moimir:clicked",action_type:"share",action_name:"share_moimir"},{on:"shareTools:extractedmoimir:clicked",action_type:"share",action_name:"share_extractedmoimir"},{on:"shareTools:odnoklassniki:clicked",action_type:"share",action_name:"share_odnoklassniki"},{on:"shareTools:extractedodnoklassniki:clicked",action_type:"share",action_name:"share_extractedodnoklassniki"},{on:"shareTools:pinterest:clicked",action_type:"share",action_name:"share_pinterest"},{on:"shareTools:extractedpinterest:clicked",action_type:"share",action_name:"share_extractedpinterest"},{on:"shareTools:plurk:clicked",action_type:"share",action_name:"share_plurk"},{on:"shareTools:extractedplurk:clicked",action_type:"share",action_name:"share_extractedplurk"},{on:"shareTools:qq:clicked",action_type:"share",action_name:"share_qq"},{on:"shareTools:extractedqq:clicked",action_type:"share",action_name:"share_extractedqq"},{on:"shareTools:renren:clicked",action_type:"share",action_name:"share_renren"},{on:"shareTools:extractedrenren:clicked",action_type:"share",action_name:"share_extractedrenren"},{on:"shareTools:telegram:clicked",action_type:"share",action_name:"share_telegram"},{on:"shareTools:extractedtelegram:clicked",action_type:"share",action_name:"share_extractedtelegram"},{on:"shareTools:twitter:clicked",action_type:"share",action_name:"share_twitter"},{on:"shareTools:extractedtwitter:clicked",action_type:"share",action_name:"share_extractedtwitter"},{on:"shareTools:viber:clicked",action_type:"share",action_name:"share_viber"},{on:"shareTools:extractedviber:clicked",action_type:"share",action_name:"share_extractedviber"},{on:"shareTools:vkontakte:clicked",action_type:"share",action_name:"share_vkontakte"},{on:"shareTools:extractedvkontakte:clicked",action_type:"share",action_name:"share_extractedvkontakte"},{on:"shareTools:wechat:clicked",action_type:"share",action_name:"share_wechat"},{on:"shareTools:extractedwechat:clicked",action_type:"share",action_name:"share_extractedwechat"},{on:"shareTools:weibo:clicked",action_type:"share",action_name:"share_weibo"},{on:"shareTools:extractedweibo:clicked",action_type:"share",action_name:"share_extractedweibo"},{on:"shareTools:whatsapp:clicked",action_type:"share",action_name:"share_whatsapp"},{on:"shareTools:extractedwhatsapp:clicked",action_type:"share",action_name:"share_extractedwhatsapp"},{on:"shareTools:zing:clicked",action_type:"share",action_name:"share_zing"},{on:"shareTools:extractedzing:clicked",action_type:"share",action_name:"share_extractedzing"},{on:"user:firstscroll",action_type:"scroll",action_name:"scroll_first"},{on:"ojComponent:click",action_type:"click",action_name:"wsoj-recs",labels:function(e){return{content_position_rec:e.clickIndex,rec_source:e.recommenderValue,rec_set:e.itemLinks,user_segment:e.userSegment}}},{on:"ojComponent:pageload",action_type:"load",action_name:"wsoj-recs",labels:function(e){return{rec_source:e.recommenderValue,rec_set:e.itemLinks,user_segment:e.userSegment}}},{on:"wsojcomponent:loadError",action_type:"load-fail",action_name:"wsoj-recs"},{on:"sportBanner:refreshButton:clicked",action_type:"click",action_name:"sport_banner_refresh"},{on:"sportBanner:closeButton:clicked",action_type:"click",action_name:"sport_banner_close"},{on:"sportBanner:loaded",action_type:"load",action_name:"sport_banner_loaded"},{on:"sportBanner:fullScorecard:clicked",action_type:"click",action_name:"sport_banner_full_score_card"},{on:"sportBanner:expandButton:clicked",action_type:"click",action_name:"sport_banner_expand"},{on:"sportBanner:collapseButton:clicked",action_type:"click",action_name:"sport_banner_collapse"},{on:"sportBanner:topicLink:clicked",action_type:"click",action_name:"sport_banner_topic_link"}]}}),define("module/navigation/overflow",["module/bootstrap","translator"],function(e,t){function n(n,a,r){function c(){return!!I.filter(function(e){return this.offsetTop>0}).length}function l(){S=o(' '+t.get("navMoreButton")+''+t.get("navMoreLabel")+" "),T=S.find(".navigation__more-button"),E.append(S)}function u(){var t=e.config.features2&&(e.config.features2.rtl||"-rtl"===e.config.cssPostfix)?"padding-left":"padding-right";E.css(t,S.width()+"px"),E.css("max-width",B-S.width()+"px")}function d(){var e;e=new RegExp("\\b"+$+"\\b","i").test(this.className),e&&this.blur(),T.removeClass($)}function h(){var e=o(''),t=o('
');t.append(e),P=e.find(".navigation-panel__inner"),n.after(t),p(),t=e=null,r.statsName&&i.emit("component:loaded",r.statsName)}function p(){for(var e,t=I,n=t.length,o=-1,i=[],s=!1;++o0;if(a.className=a.className.replace(/\binvisible\b/,""),r){s||(f(m(t,o)),s=!0);var c=a.cloneNode(!0);c=g(c),i.push(c),a.className+=" invisible"}}e=v(i),P.html(e),w()}function m(t,n){var o=t[n-1].offsetLeft;return o+=e.config.features2&&(e.config.features2.rtl||"-rtl"===e.config.cssPostfix)?-S.width():t[n-1].offsetWidth}function f(e){S.css("left",e+"px")}function g(e){var t=e.getElementsByTagName("a");return t.length&&(t[0].className="navigation-panel-toplevel__link"),e}function v(e){var t=s.documentElement.clientWidth,n=document.createDocumentFragment();_=[],k=e,C=y(t),x=Math.ceil(k.length/C),R();for(var o=0,i=C;o0&&n.appendChild(a)}return n}function b(){var e=document.createElement("ul");return e.className="navigation-panel-toplevel",e}function y(e){return e>=N[2]&&e=N[3]&&e ")}i(),o("success",e,t)},error:function(e){i(),o("error","Error: 404",t)}})})}()},t}),define("module/history/native",["module/bootstrap"],function(e){return function(t,n){this.EmittedFromHistory=!1;for(var o=this,i=0,s=t.length;i